package com.codi.bus.core.service;

import com.codi.bus.core.resultModel.DividendApplyResult;
import com.codi.bus.core.service.model.DividendModel;
import com.codi.bus.exception.BaseException;

import java.util.List;

/**
 * Created by asus on 2018/3/16.
 */
public interface DividendApplyService {
    DividendApplyResult queryPortfolioDividendApplys(Long userId, Integer requestNum, Integer queryFlag, Integer beginNum,
                                                     String sortDirection,String taSerialId) throws BaseException;

    void filterT0(List<DividendModel> dividendModels, boolean filterT0);

    void filterFund(List<DividendModel> dividendModels, boolean filterT0);

    /*
     * 查询普通基金分红交易记录
     */
    DividendApplyResult queryWalletDividendApplys(Long userId, Integer requestNum, Integer queryFlag, Integer beginNum, String sortDirection,String taSerialId) throws BaseException;

    /**
     * 普通基金分红交易记录
     *
     * @param userId
     * @param requestNum 请求行数
     * @param queryFlag 1
     * @param beginNum 开始行数
     * @param sortDirection 排序 1
     * @return
     * @throws BaseException
     */
    DividendApplyResult queryNormalDividendApplys(Long userId, Integer requestNum, Integer queryFlag, Integer beginNum,
                                            String sortDirection,String taSerialId) throws BaseException;
}
